﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Space_Conquest
{
    class Tile : IRender
    {
        //Constructor
        #region Constructor
        
        public Tile(Texture Text)
        {
            this._texture = Text;
            this._groundPassable = true;
            this._airPassable = true;

        }

        public Tile(Texture Text, bool groundPassable, bool airPassable)
        {

            this._texture = Text;
            this._groundPassable = groundPassable;
            this._airPassable = airPassable;

        }

        #endregion

        //Method
        #region Method
        public void Render()
        {
            //this._sprite.Render(_texture);

        }
        #endregion

     
        //Properties
        #region Properties
        public Texture texTile
        {
            get
            {
                return _texture;
            }
            set
            {
                if (value != null)
                {
                    _texture = value;
                }
            }

        }

        public int ID
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }

        public bool GroundPassable
        {
            get
            {
                return _groundPassable;
            }
        }

        public bool AirPassable
        {
            get
            {
                return _airPassable;
            }
        }

        //public Sprite sprTile
        //{
        //    get
        //    {
        //        return _sprite;
        //    }
        //    set
        //    {
        //        if (value != null)
        //        {
        //            _sprite = value;
        //        }
        //    }
        //}

        #endregion


        //Private Variables
        #region Private Variables

        private Texture _texture;
        private int _id;

        private bool _groundPassable;
        private bool _airPassable;

        #endregion
      



    }
}
